home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / DiskInit.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  1.8 KB  |  107 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        DiskInit.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__DISKINIT__') = 'UNDEFINED' THEN
  18. __DISKINIT__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. ;        include 'ConditionalMacros.a'                                ;
  25. HFSDefaults             RECORD    0
  26. sigWord                     ds.b    2                                    ; signature word 
  27. abSize                     ds.l    1                                    ; allocation block size in bytes 
  28. clpSize                     ds.l    1                                    ; clump size in bytes 
  29. nxFreeFN                 ds.l    1                                    ; next free file number 
  30. btClpSize                 ds.l    1                                    ; B-Tree clump size in bytes 
  31. rsrv1                     ds.w    1                                    ; reserved 
  32. rsrv2                     ds.w    1                                    ; reserved 
  33. rsrv3                     ds.w    1                                    ; reserved 
  34. sizeof                     EQU    24
  35.                         ENDR
  36.  
  37.     IF SystemSevenOrLater  THEN
  38.     IF GENERATING68K THEN
  39.         Macro
  40.         _DILoad
  41.             moveq    #2,d0
  42.             dc.w     $3F00
  43.             dc.w     $A9E9
  44.         EndM
  45.     ELSE
  46.         IMPORT    DILoad
  47.     ENDIF
  48.  
  49.     IF GENERATING68K THEN
  50.         Macro
  51.         _DIUnload
  52.             moveq    #4,d0
  53.             dc.w     $3F00
  54.             dc.w     $A9E9
  55.         EndM
  56.     ELSE
  57.         IMPORT    DIUnload
  58.     ENDIF
  59.  
  60.     IF GENERATING68K THEN
  61.         Macro
  62.         _DIBadMount
  63.             moveq    #0,d0
  64.             dc.w     $3F00
  65.             dc.w     $A9E9
  66.         EndM
  67.     ELSE
  68.         IMPORT    DIBadMount
  69.     ENDIF
  70.  
  71.     IF GENERATING68K THEN
  72.         Macro
  73.         _DIFormat
  74.             moveq    #6,d0
  75.             dc.w     $3F00
  76.             dc.w     $A9E9
  77.         EndM
  78.     ELSE
  79.         IMPORT    DIFormat
  80.     ENDIF
  81.  
  82.     IF GENERATING68K THEN
  83.         Macro
  84.         _DIVerify
  85.             moveq    #8,d0
  86.             dc.w     $3F00
  87.             dc.w     $A9E9
  88.         EndM
  89.     ELSE
  90.         IMPORT    DIVerify
  91.     ENDIF
  92.  
  93.     IF GENERATING68K THEN
  94.         Macro
  95.         _DIZero
  96.             moveq    #10,d0
  97.             dc.w     $3F00
  98.             dc.w     $A9E9
  99.         EndM
  100.     ELSE
  101.         IMPORT    DIZero
  102.     ENDIF
  103.  
  104.     ELSE
  105.     ENDIF
  106.     ENDIF ; __DISKINIT__
  107.